package com.zbkj.dal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.dal.entity.user.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author JinXinyu
 * @date 2024-03-19 21:16:57
 */
public interface EmployeeDao extends BaseMapper<Employee> {

    @Update("update eb_employee e set e.employee_no = #{newEmployeeNo},e.update_time = current_timestamp where e.employee_no = #{employeeNo}")
    void updateEmployeeNo(@Param("employeeNo") String employeeNo, @Param("newEmployeeNo") String newEmployeeNo);

}
